'''
for x in range(5):
    print(x)
print("-----------------------------")

for x in (0,5,6,2):
    print(x)
print("---------------------")

for x in range(0,5,2): #起始值,结束值，步调
    print(x)

print("------------------")

print(type(range(5)))
print("----------------")
'''
'''
for x in dir(str):
    print(x)
'''
#help(str.upper)

'''
a=1
print(type(a))
b=3.14
print(type(b))
'''

##l=[1,2,3]
##print(type(l))
##se={1,2,3}
##print(type(se))
##
##obj={"a":1}
##print(type(obj))

##box=['a','b','c','d']
##print(id(box))

##x,y=('aaaa','bbbb')
##print(x,y)

'''
nums=[]
for i in range(1,10):
    if i%3 == 0 or i%5 == 0:
        nums.append(i)
print(nums)
print(sum(nums))
'''
'''
列表解析
a=[i*10 for i in range(10) if i%2 == 0]
print(a,type(a))
生成器表达式
b=(i for i in range(1,10) if i%2 == 0)
print(b,type(b))
'''
# b=(i for i in range(1,100) if i%2 == 0)
# for i in b:
#     print(i)

d={"name":'hk','age':12}
# print(type(d),d['name'],d['age'])
d['sex']=1
# print(d,'name' in d)
# d1=d
# d1['age']=28
# print(d,d1)
# d2=d.items()
# print(d2,type(d2))
# for k,v in d2:
#     print(k,'--',v)

'''

x={"a","bb","cc"}
y={"a",'cc','b'}
print(x&y,x|y,x-y)
a=set("abcd")
print(a) #无序的
'''


a="%(name)s:%(age)d"%{"age":1,"name":"hk"}
b="%s,%d"%("hk",25)





























































































        
